package com.itheima.features.collection;

import java.util.Map;

public class MapDemo01 {

    public static void main(String[] args) {

        Map<String, String> stringStringMap = Map.ofEntries(Map.entry("蓝忘机", "云深不知处"), Map.entry("魏无羡", "莲花坞"));

//        stringStringMap.put("聂怀桑", "不净世");
//        stringStringMap.put("魏无羡", "乱葬岗");
        stringStringMap.remove("蓝湛");

        stringStringMap.forEach((key, value) -> System.out.println(key + "----" + value));
    }
}
